import React, { Component } from "react";
import { Switch, Redirect, Route } from "react-router-dom";

import PdtHome from "./pdt-home";
import PdtDetail from "./pdt-details";
import PdtUpdate from "./pdt-update";

export default class Product extends Component {
  render() {
    return (
      <div>
        <Switch>
          <Route path="/product" component={PdtHome} exact></Route>
          <Route path="/product/detail" component={PdtDetail}></Route>
          <Route path="/product/update" component={PdtUpdate}></Route>
          <Redirect to="/product"></Redirect>
        </Switch>
      </div>
    );
  }
}
